package pojo.vo;

import java.io.Serializable;
import java.util.Map;

public class Pagination implements Serializable {
    private Integer currentPage;//当前页
    private Integer pageSize;//每页显示条数
    private Map queryParams;    //查询条件

    public Pagination() {
    }

    public Pagination(Integer currentPage, Integer pageSize, Map queryParams) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.queryParams = queryParams;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Map getQueryParams() {
        return queryParams;
    }

    public void setQueryParams(Map queryParams) {
        this.queryParams = queryParams;
    }

    @Override
    public String toString() {
        return "Pagination{" +
                "currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", queryParams=" + queryParams +
                '}';
    }
}
